import { Navigate } from 'react-router-dom'

import ZJDiscover from '@/page/discover'
import ZJMine from '@/page/mine'
import ZJFriend from '@/page/friend'
import ZJRecommend from '@/page/discover/c-page/recommend'
import ZJPlayer from "@/page/player";

const routes = [
    {
        path: "/discover",
        element: <ZJDiscover />,
        children: [
            {
                path: "recommend",
                element: <ZJRecommend />
            },
            {
                path: "player",
                element: <ZJPlayer />
            },
            {
                path: "",
                element: <Navigate to="recommend" />
            }
        ]
    },
    {
        path: "/mine",
        element: <ZJMine />
    },
    {
        path: "/friend",
        element: <ZJFriend />
    },
    {
        path: "/",
        element: <Navigate to="/discover" />
    },
]

export default routes;